package com.un.ebs.order.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 
 * </p>
 *
 * @author liubo
 * @since 2019-12-05
 */
@Data
@Component
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bz_order")
public class BzOrder extends Model<BzOrder> {

    private static final long serialVersionUID=1L;

        @TableId(value = "order_id", type = IdType.UUID)
        private Long orderId;

    private String skuId;

    private String skuName;

    private Double skuProdType;

    private Integer skuPlatform;

    private String defunctId;

    private String defunctName;

    private Integer defunctSex;

    private Double defunctAge;

    private String custId;

    private String custName;

    private String custPhone;

    private String custAddr;

    private Integer custSex;

    private Double orderStatus;

    @TableField(fill = FieldFill.INSERT)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private Date settleTime;

    private Double totalMoney;

    private Double firstDiscount;

    private Double secondDiscount;

    private Double otherDiscount;

    private Double orderSkuQty;

    private Double orderSkuPrice;

    private Long memorialSeq;

    private Date memorialStartTime;

    private Date memorialEndTime;

    private Double tranStatus;

    @Override
    protected Serializable pkVal() {
            return this.orderId;
    }

}